package com.StarStudio.Service;


import com.ruoyi.common.core.Entity.Exchange;
import com.ruoyi.common.core.Entity.Login;
import com.ruoyi.system.api.domain.SysUser;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface ExchangeService {

    List<Exchange> findExchangeList(Exchange exchange);
    Exchange findByExchange_id(long id);
    List<Exchange> findByExchange_user_id(long id);
    void deleteExchangeById(long id);
    void addExchange(Exchange exchange);
    void updateExchange(Exchange exchange);
    long findAllRecordNumber();
    void updateExchangeStatus(long coupons_item_id,  String status, String exchange_store);

    Exchange findByCoupons_item_id(long coupons_item_id);

    SysUser findSysUser(Login login);

    void deleteExchangeByGoodsCondition(long orderId,long itemId);

    List<Exchange> findByCouponsIdAndExchangeStoreToday(String nickName,String today);

    List<Exchange> findByCouponsIdAndExchangeStore(String StoreName);
}
